import http from './http.js'

let cs = '/api/admin';  // 线上服务 '/api/admin'  //本地服务 '/api' 


export const token = (token) => {
    return http.get(cs + '/token?token=' + token)
}

export const area = (params) => {
    return http.get(cs + "/area/" + params)
}

export const layerInfo = (params) => {
    return http.get(cs + "/specialLayer/layerInfo", params)
}

export const project = (params) => {
    return http.get(cs + "/project/page" + params)
}

export const gOne = (params) => {
    return http.get(cs + "/project/getOne?id=" + params)
}

export const deleteProject = (params) => {
    return http.del(cs + "/project/deleteProject?id=" + params)
}

export const ProjectWithFiles = (params) => {
    return http.post(cs + "/project/addProjectWithFiles", params)
}

export const updateProjectWithFiles = (params) => {
    return http.post(cs + "/project/updateProjectWithFiles", params)
}

export const addSchedule = (params) => {
    return http.post(cs + "/project/addSchedule", params)
}


